package com.g9.blog.service;

import com.g9.blog.common.Result;
import com.g9.blog.entity.Admin;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @Auther: Graycat
 * @Date: 2020/9/15 14:49
 * Create by lwj.
 */
public interface AdminService {

    void save(Admin admin);

    void deleteById(int adminid);

    Admin findById(int adminId);

    List<Admin> findAll();

    Result updateAdminIcon(MultipartFile file, Admin admin);

    Admin findByUsername(String username);
}
